import { apiClient } from './index'

export default {
  getPermissions() {
    return apiClient.get('/permissions')
  },
  getPermission(id) {
    return apiClient.get(`/permissions/${id}`)
  },
  createPermission(permission) {
    return apiClient.post('/permissions', permission)
  },
  updatePermission(id, permission) {
    return apiClient.put(`/permissions/${id}`, permission)
  },
  deletePermission(id) {
    return apiClient.delete(`/permissions/${id}`)
  }
}
